package com.gcxy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author wlp
 * @since 2023-12-19
 */

@ApiModel(value = "Ranch对象", description = "")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Ranch implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("牧场编号")
      @TableId(value = "ranch_id", type = IdType.AUTO)
    private Integer ranchId;

    @ApiModelProperty("牧场牧名称")
    private String ranchName;

    @ApiModelProperty("场地规模(100~999999)")
    private Integer ranchArea;

    @ApiModelProperty("养殖规模(0~999999)")
    private Integer ranchFeed;

    @ApiModelProperty("省")
    private String province;

    @ApiModelProperty("市")
    private String city;

    @ApiModelProperty("区县")
    private String county;

    @ApiModelProperty("详细地址")
    private String address;

    @ApiModelProperty("经度")
    private BigDecimal longitude;

    @ApiModelProperty("纬度")
    private BigDecimal latitude;

    @ApiModelProperty("存栏量")
    private Integer ranchAmount;

    @ApiModelProperty("状态")
    private Integer ranchState;

    @ApiModelProperty("字典编号")
    private Integer dicId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("修改时间")
    private LocalDateTime updateTime;


}
